//
//  BBTextViewModel.h
//  BBKit
//
//  Created by apple on 2019/7/1.
//  Copyright © 2019年 baobao. All rights reserved.
//

#import "BBBaseViewModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface BBTextViewModel : BBBaseViewModel


@property(nonatomic,strong,readonly) BBTextViewModel *(^ delegate)(id<UITextViewDelegate> delegate);

@property(nonatomic,strong,readonly) BBTextViewModel *(^ text)(NSString *text);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ font)(UIFont *font);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ textColor)(UIColor *textColor);

@property(nonatomic,strong,readonly) BBTextViewModel *(^ textAlignment)(NSTextAlignment textAlignment);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ selectedRange)(NSRange numberOfLines);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ editable)(BOOL editable);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ selectable)(BOOL selectable);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ dataDetectorTypes)(UIDataDetectorTypes dataDetectorTypes);

@property(nonatomic,strong,readonly) BBTextViewModel *(^ keyboardType)(UIKeyboardType keyboardType);

@property(nonatomic,strong,readonly) BBTextViewModel *(^ allowsEditingTextAttributes)(BOOL allowsEditingTextAttributes);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ attributedText)(NSAttributedString *attributedText);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ typingAttributes)(NSDictionary *typingAttributes);

@property(nonatomic,strong,readonly) BBTextViewModel *(^ clearsOnInsertion)(BOOL clearsOnInsertion);

@property(nonatomic,strong,readonly) BBTextViewModel *(^ textContainerInset)(UIEdgeInsets textContainerInset);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ linkTextAttributes)(NSDictionary *linkTextAttributes);

#pragma mark - UIScrollView
@property(nonatomic,strong,readonly) BBTextViewModel *(^ contentSize)(CGSize contentSize);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ contentOffset)(CGPoint contentOffset);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ contentInset)(UIEdgeInsets contentInset);

@property(nonatomic,strong,readonly) BBTextViewModel *(^ bounces)(BOOL bounces);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ alwaysBounceVertical)(BOOL alwaysBounceVertical);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ alwaysBounceHorizontal)(BOOL alwaysBounceHorizontal);

@property(nonatomic,strong,readonly) BBTextViewModel *(^ pagingEnabled)(BOOL pagingEnabled);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ scrollEnabled)(BOOL scrollEnabled);

@property(nonatomic,strong,readonly) BBTextViewModel *(^ showsHorizontalScrollIndicator)(BOOL showsHorizontalScrollIndicator);
@property(nonatomic,strong,readonly) BBTextViewModel *(^ showsVerticalScrollIndicator)(BOOL showsVerticalScrollIndicator);

@property(nonatomic,strong,readonly) BBTextViewModel *(^ scrollsToTop)(BOOL scrollsToTop);

@end

NS_ASSUME_NONNULL_END
